<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>巨丰数字化看板</title>
    <!-- <script src="./vue.js"></script> -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>
    <link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js"></script>
    <script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
        }

        .page-wrap {
            position: relative;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            background: url('./yqbgSS.png') no-repeat;
            background-size: 100% 100%;

        }

        .page {
            left: 50%;
            top: 50%;
            transform-origin: left top;
            transform: translate(-50%, -50%);
            width: 1920px;
            height: 1080px;
            position: absolute;
            display: flex;
            flex-direction: column;
        }

        /* //上面主要部分 */
        .content-box {
            display: flex;
        }

        .title {
            width: 100%;
            height: 86px;
            background: url('./Top.png') no-repeat;
            background-size: 100% 100%;
        }

        .text {
            font-size: 48px;
            font-weight: bold;
            color: #fff;
            position: absolute;
            left: 44%;
            top: 0.5%;
        }

        .box {
            width: 100%;
            height: 91%;
            margin-top: 10px;
            display: flex;
            flex-flow: column;
            justify-content: space-between;
        }

        .bh-box {
            width: 100%;
            height: 66%;
            display: flex;
            justify-content: space-between;
        }

        .bh-l {
            width: 30%;
            height: 100%;
            display: flex;
            flex-flow: column;
            justify-content: space-evenly;
        }

        .bh-c {
            width: 38%;
            height: 100%;
            display: flex;
            flex-flow: column;
            justify-content: space-evenly;
        }

        .bh-r {
            width: 30%;
            height: 100%;
            display: flex;
            flex-flow: column;
            justify-content: space-evenly;
        }

        .bb-box {
            width: 100%;
            height: 33%;
            display: flex;
            flex-flow: row;
            justify-content: space-between;
        }

        .lt-box {
            width: 100%;
            height: 45%;
            background: url('./kuaibg.png') no-repeat;
            background-size: 100% 100%;
            position: relative;
        }

        .rt-box {
            width: 100%;
            height: 45%;
            background: url('./kuaibg.png') no-repeat;
            background-size: 100% 100%;
            position: relative;
        }

        .ct-box {
            width: 100%;
            height: 35%;
            background: url('./kuaibg1.png') no-repeat;
            background-size: 100% 100%;
            position: relative;
        }

        .bbl-box {
            background: url('./kuaibg.png') no-repeat;
            background-size: 100% 100%;
            width: 30%;
            height: 98%;
            position: relative;
        }

        .bbr-box {
            background: url('./kuaibg1.png') no-repeat;
            background-size: 100% 100%;
            width: 68%;
            height: 98%;
            position: relative;
        }

        .bbr-img {
            background: url('./biaoti.png') no-repeat;
            background-size: 100% 100%;
            width: 277px;
            height: 34px;
            position: relative;
        }

        .ct-img {
            background: url('./biaoti.png') no-repeat;
            background-size: 100% 100%;
            width: 277px;
            height: 30px;
            position: relative;
        }

        .text-box {
            font-size: 18px;
            color: #fff;
        }

        .kfcpfx {
            position: absolute;
            left: 5%;
            top: 0.8%;
        }

        .cqfx {
            position: absolute;
            left: 12%;
            top: 7%;
        }

        .schj {
            position: absolute;
            left: 12%;
            top: 7%;
        }

        .lt-content {
            width: 100%;
            height: 70%;
            position: absolute;
            top: 18%;
            display: flex;
            justify-content: space-between;
        }

        .yuanbg {
            width: 21%;
            height: 100%;
            display: flex;
            flex-flow: column;
            justify-content: flex-start;
        }

        .y-box {
            width: 100%;
            height: 30%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .yuandian {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgb(50, 227, 175);
            margin-right: 5px;
        }

        .y-text {
            color: #fff;
            font-size: 14px;
        }

        .zdl {
            width: 100%;
            height: 64%;
            background: url('./rate.png') no-repeat;
            background-size: 100% 100%;
            position: relative;
        }

        .zdl1 {
            width: 100%;
            height: 64%;
            background: url('./rate1.png') no-repeat;
            background-size: 100% 100%;
            position: relative;
        }

        .bg1 {
            background-color: rgb(0, 213, 255);
        }

        .ct-gauge {
            width: 100%;
            height: 70%;
            position: absolute;
            top: 19%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #gauge {
            width: 50%;
            height: 100%;
        }

        .map {
            width: 100%;
            height: 80%;
            position: absolute;
            top: 13%;
            overflow: hidden;
        }

        #SalesMap {
            width: 130%;
            height: 130%;
            position: absolute;
            top: -17%;
            left: -16%;
        }

        .niandu {
            width: 100%;
            height: 82%;
            position: absolute;
            top: 15%;
            display: flex;
            flex-flow: row;
            align-items: center;
            justify-content: space-between;
        }

        #snnualSalesProduct {
            width: 100%;
            height: 75%;
        }

        #snnualSalesProduct1 {
            width: 100%;
            height: 75%;
        }

        .n-box {
            width: 80%;
            height: 15%;
            display: flex;
            align-items: center;
        }

        .eab502 {
            background: #eab502;
        }

        .huanjie {
            width: 100%;
            height: 80%;
            position: absolute;
            top: 12%;
            display: flex;
            align-items: center;
            left: 5%;
        }

        .hj-box {
            width: 50%;
            height: 203px;
            background: url('./zhichengImg.png') no-repeat;
            background-size: 100% 100%;
        }

        .hj-img {
            width: 15%;
            height: 80%;
            position: relative;
        }

        .star {
            width: 82%;
            height: 50px;
            background: url('./star.png') no-repeat;
            position: absolute;
            top: 5%;
            left: 18%;
            background-size: 100% 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
        }

        .star1 {
            width: 82%;
            height: 65px;
            background: url('./star1.png') no-repeat;
            background-size: 100% 100%;
            position: absolute;
            top: 70%;
            left: 18%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
        }

        .ctimg-box {
            width: 100%;
            height: 68%;
            position: absolute;
            top: 17%;
            display: flex;
            flex-flow: row wrap;
            justify-content: center;
        }

        .hlb-h-box {
            width: 50%;
            height: 50%;
            display: flex;
            flex-flow: column;
            justify-content: center;
            align-items: center;
        }

        .hlb-h-boxbb {
            width: 47%;
            display: flex;
            flex-flow: wrap;
        }

        .hlb-title {
            font-size: 14px;
            color: #90a6c7;
        }

        .hlb-text {
            font-size: 30px;
            font-weight: 700;
            color: #23e1f9;
        }

        .c-20b2e9 {
            color: #20b2e9;
        }

        .c-0986c7 {
            color: #0986c7;
        }

        .c-09cac3 {
            color: #09cac3;
        }

        .zdl-text {
            color: #fff;
            font-size: 12px;
            position: absolute;
            top: 4%;
            left: 34%;
        }

        .zdl-reta {
            font-size: 20px;
            font-weight: bold;
            position: absolute;
            top: 34%;
            left: 20%;
            color: rgb(0, 213, 255);
        }

        .zdl-reta1 {
            font-size: 20px;
            font-weight: bold;
            position: absolute;
            top: 34%;
            left: 20%;
            color: rgb(50, 227, 175);
        }

        .nia-box {
            width: 48%;
            height: 100%;
        }

        .b-238160 {
            background-color: #00eea0;
        }

        .gauge-text {
            color: #fff;
        }

        .g-text {
            margin-top: 20px;
        }

        .c-1cd9ff {
            color: #1cd9ff;
            font-size: 18px;
            font-weight: bold;
        }

        .gongduan {
            position: absolute;
            top: -49%;
            left: 44%;
            width: 210px;
            height: 40px;
            background: url(./zhicgongduan.png) no-repeat;
            background-size: 100% 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;

        }

        .gongduan1 {
            top: 7%;
            left: 32%;
        }

        .gongduan2 {
            top: 7%;
            left: 56%;
        }

        .gongduan3 {
            top: 83%;
            left: 40%;
        }

        .gngduancolor {
            color: #00eea0;
        }
    </style>
</head>

<body>
    <div class="page-wrap" id="app">
        <div ref="screen-wrap" class="page">
            <div class="title"></div>
            <div class="text">数字化看板</div>
            <div class="box">
                <div class="bh-box">
                    <div class="bh-l">
                        <div class="lt-box">
                            <span class="text-box kfcpfx">开发产品分析</span>
                            <div class="lt-content">
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian bg1"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta ">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl1">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta1">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian bg1"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl1">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta1">23.12%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="lt-box">
                            <span class="text-box kfcpfx">开发颜色分析</span>
                            <div class="lt-content">
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian bg1"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta ">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl1">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta1">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian bg1"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta">23.12%</div>
                                    </div>
                                </div>
                                <div class="yuanbg">
                                    <div class="y-box">
                                        <div class="yuandian"></div>
                                        <span class="y-text">春季中单率</span>
                                    </div>
                                    <div class="zdl1">
                                        <div class="zdl-text">中单率</div>
                                        <div class="zdl-reta1">23.12%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="bh-c">
                        <div class="ct-box">
                            <div class="ct-img">
                                <span class="text-box cqfx">厂区分析</span>
                            </div>
                            <div class="ctimg-box">
                                <div class="hlb-h-boxbb" style="margin-right:15px;">
                                    <div class="hlb-h-box">
                                        <div class="hlb-title"> 织造订单数量</div>
                                        <div class="hlb-text">2000T</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title"> 织造客户准交</div>
                                        <div class="hlb-text c-09cac3">98%</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">降等率</div>
                                        <div class="hlb-text c-20b2e9">1%</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">疵点率</div>
                                        <div class="hlb-text c-0986c7">1%</div>
                                    </div>
                                </div>
                                <div class="hlb-h-boxbb" style="margin-left:15px;">
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">染整订单数量</div>
                                        <div class="hlb-text">2000T</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">染整准交缸数</div>
                                        <div class="hlb-text c-20b2e9">1500</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">染整空闲产能</div>
                                        <div class="hlb-text c-0986c7">1000</div>
                                    </div>
                                    <div class="hlb-h-box">
                                        <div class="hlb-title">染整客户准交</div>
                                        <div class="hlb-text c-09cac3">98%</div>
                                    </div>
                                </div>

                            </div>

                        </div>
                        <video width="100%" height="55%" autoplay="" loop="" controls="" muted=""
                            src="http://120.196.185.227:7576/api/minio/file/download/zzy/6e6e8314217d4c499cdeef9ed5b50bc6.mp4"></video>
                    </div>
                    <div class="bh-r">
                        <div class="rt-box">
                            <span class="text-box kfcpfx">销售分析</span>
                            <div class="ct-gauge">
                                <div id="gauge"></div>
                                <div class="gauge-text">
                                    <div class="g-text">当月订单应发数量：
                                        <span class="c-1cd9ff">101,697</span>
                                    </div>
                                    <div class="g-text">当月订单发货数量：
                                        <span class="c-1cd9ff">61,697</span>
                                    </div>
                                    <div class="g-text">当年订单发货数量：
                                        <span class="c-1cd9ff">2,101,697</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="rt-box">
                            <span class="text-box kfcpfx">年度销售产品</span>
                            <div class="niandu">
                                <!-- <div class="n-box">
                                    <div class="yuandian eab502"></div>
                                    <span class="y-text">年度销售产品TOP10（单位/双）</span>
                                </div> -->
                                <div class="nia-box">
                                    <div class="n-box">
                                        <div class="yuandian eab502"></div>
                                        <span class="y-text">年度销售产品TOP10（单位/双）</span>
                                    </div>
                                    <div id="snnualSalesProduct"></div>
                                </div>
                                <div class="nia-box">
                                    <div class="n-box">
                                        <div class="yuandian b-238160"></div>
                                        <span class="y-text">月度销售产品TOP10（单位/双）</span>
                                    </div>
                                    <div id="snnualSalesProduct1"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bb-box">
                    <div class="bbl-box">
                        <span class="text-box kfcpfx">销售网络地图</span>
                        <div class="map">
                            <div id="SalesMap"></div>

                        </div>
                    </div>
                    <div class="bbr-box">

                        <div class="bbr-img">
                            <span class="text-box schj">生产环节</span>
                        </div>
                        <div class="gongduan gongduan1">
                            工段1：
                            <span class="gngduancolor">裁断32%</span>
                        </div>
                        <div class="gongduan gongduan2">
                            工段2：
                            <span class="gngduancolor">裁断32%</span>
                        </div>
                        <div class="gongduan gongduan3">
                            工段3：
                            <span class="gngduancolor">裁断32%</span>
                        </div>
                        <div class="huanjie">
                            <div class="hj-img">
                                <div class="star">派工</div>
                                <div class="star1">装箱扫码入库</div>
                            </div>
                            <div class="hj-box"></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="./china.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.24.0/axios.min.js"></script> <!-- 使用 CDN 引入 axios -->
    <script>

        new Vue({
            el: "#app",
            data() {
                return {
                    date: '',
                    time: ''
                };
            },
            mounted() {
                this.sendRequest()
                // axios.get('http://192.168.110.27:8222/api/purchase/FixedAssetsBorrow/getPage',
                //     {
                //         headers: {
                //             Token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ6enktdXNlciIsImlhdCI6MTY4ODEwMTQ4Niwibmlja25hbWUiOiJjYyJ9.XxHlgwoQBwHZ7WPwWe-DQPV4AZPzm0Oail4qdZHeAM4'
                //         }
                //     }
                // )
                //     .then(response => {
                //         // 请求成功，处理响应数据
                //         console.log(response.data);
                //     })
                //     .catch(error => {
                //         // 请求失败，处理错误
                //         console.error(error);
                //     });
                window.addEventListener('resize', this.throttle(() => { this.setScale() }, 100)), this.setScale();
                // 表盘
                this.gauge()
                // 销售地图
                this.SalesMap()
                // 年度销售产品
                this.snnualSalesProduct()
                // 月度销售产品
                this.snnualSalesProduct1()
            },
            beforeDestroy() {
                window.removeEventListener('resize', this.setScale)
            },
            methods: { // 销售地图
                SalesMap() {
                    echarts.registerMap('china', jsonData);
                    var chart = echarts.init(document.getElementById('SalesMap'));
                    let iconRQ = "";
                    let curveness = -0.4;//调整弧线弧度
                    var geoCoordMap = {
                        '黑龙江': [127.9688, 45.368, 48209.4, 22321.2, 19598.7, 30213.2, 2521.2, 1343.5, 6321.6, 1842.1, 832.9, 90129.3],
                        '内蒙古': [110.3467, 41.4899, 59371.6, 23395.9, 18461.6, 29101.3, 510.5, 779.0, 688.4, 897.4, 202.6, 101229.1],
                        "吉林": [125.8154, 44.2584, 459391.2, 24591.4, 16846.6, 28589.4, 2296.9, 228.8, 1580.4, 259.8, 661.8, 500829.2],
                        '北京': [116.4551, 40.2539, 64368.7, 25737.1, 25712.1, 28573.9, 791.8, 817.1, 4888.7, 783.7, 60.2, 0],
                        "辽宁": [123.1238, 42.1216, 48097.3, 19734.3, 16816.1, 28330.2, 1513.5, 278.1, 6055.0, 1414.1, 700.9, 84647.7],
                        "河北": [114.4995, 38.1006, 40866.2, 17336.9, 16846.2, 28320.4, 840.3, 598.8, 1058.6, 330.5, 814.0, 75049.3],
                        "天津": [117.4219, 39.4189, 30964.4, 14341.5, 13482.1, 28262.8, 1437.9, 721.5, 4372.5, 627.2, 767.2, 58788],
                        "山西": [112.3352, 37.9413, 33211.8, 11435.8, 10818.7, 28256.7, 2109.7, 341.2, 5955.1, 1321.5, 402.3, 55466.3],
                        "陕西": [109.1162, 34.2004, 35714.9, 10814.4, 10459.4, 28135.4, 1251.3, 1262.7, 2871.5, 1334.4, 442.1, 56988.7],
                        "甘肃": [103.5901, 36.3043, 39459.1, 11358.6, 10410.8, 28123.4, 417.7, 1135.6, 172.1, 374.3, 415.8, 61228.5],
                        "宁夏": [106.3586, 38.1775, 41869.0, 11961.8, 10586.4, 28068.3, 1120.6, 1267.5, 3768.9, 1750.2, 208.1, 76164.1],
                        "青海": [101.4038, 36.8207, 48412.1, 14671.2, 13080.8, 28015.4, 2310.9, 982.4, 4577.3, 1709.5, 84.1, 76164.1],
                        "新疆": [87.9236, 43.5883, 45938.4, 21869.1, 20580.3, 27942.3, 2105.6, 1217.5, 4485.3, 461.7, 115.6, 88387.8],
                        "西藏": [91.11, 29.97, 43365.9, 23439.1, 22309.3, 27887.7, 2425.9, 905.6, 2855.7, 957.8, 410.0, 89114.3],
                        "四川": [103.9526, 30.7617, 51939.6, 25734.6, 24733.1, 27864.5, 418.7, 775.7, 969.3, 1533.8, 285.6, 102407.3],
                        "重庆": [108.3843, 30.4397, 48410.9, 24618.3, 22808.0, 27730.2, 82.3, 1117.8, 1573.9, 392.3, 122.6, 95837.2],
                        "山东": [117.1582, 36.8701, 48096.1, 19309.1, 18306.3, 27592.8, 1044.9, 849.7, 2270.3, 918.8, 424.5, 85711.5],
                        "河南": [113.4668, 34.6234, 45736.9, 19315.6, 17309.8, 27580.5, 1605.4, 136.6, 4704.7, 247.6, 142.2, 82362.3],
                        "江苏": [118.8062, 31.9208, 53080.8, 22185.9, 21830.8, 27357.2, 628.1, 192.0, 5492.4, 1012.8, 728.3, 97097.5],
                        "安徽": [117.29, 32.0581, 43080.6, 19308.0, 19081.0, 27230.3, 209.6, 968.5, 2151.5, 442.8, 60.1, 81469.6],
                        "湖北": [114.3896, 30.6628, 48094.1, 21808.1, 20308.0, 26754.7, 355.6, 1318.8, 3087.1, 1167.9, 288.2, 90210.2],
                        "浙江": [119.5313, 29.8773, 55821.3, 23698.1, 22337.0, 26471.4, 1955.7, 324.7, 2323.9, 592.2, 538.0, 2],
                        "福建": [119.4543, 25.9222, 53644.6, 24933.1, 23093.6, 26322.2, 1302.6, 863.1, 2475.2, 1585.8, 472.9, 101671.3],
                        "江西": [116.0046, 28.6633, 49616.3, 21843.9, 20803.4, 25755.4, 640.8, 1038.6, 4206.9, 227.6, 212.2, 92263.6],
                        "湖南": [113.0823, 28.2568, 51893.9, 21415.9, 20280.9, 25617.6, 2336.6, 543.0, 2940.5, 1412.1, 233.5, 93590.7],
                        "贵州": [106.6992, 26.7682, 45866.2, 23435.6, 22308.1, 25416.8, 1755.2, 1307.7, 1401.5, 31.2, 251.7, 91609.9],
                        "云南": [102.9199, 25.4663, 48099.1, 18664.1, 16130.8, 25255.3, 1796.4, 694.9, 3368.8, 1199.3, 402.2, 82894],
                        "广东": [113.1224, 23.0095, 62143.3, 25593.9, 24893.4, 25249.2, 1840.5, 347.1, 237.2, 1490.7, 530.4, 112630.6],
                        "广西": [108.479, 23.1152, 44618.5, 18684.3, 17808.1, 24761.5, 808.0, 374.1, 2422.5, 165.5, 500.7, 81110.9],
                        "海南": [110.3893, 19.8516, 55823.9, 25583.7, 24686.8, 24559.2, 1614.0, 1208.0, 784.1, 1337.4, 25.0, 95458.1],
                        '上海': [121.4648, 31.2891, 64643.5, 28096.4, 2718.3, 24524.4, 720.9, 1236.0, 4808.8, 393.2, 143.8, 106094.4],
                        '台湾': [121.5651, 25.0377, 24643.5, 147348.6, 13080.8, 24419.3, 667.2, 1100.0, 4976.4, 820.2, 210.2, 185072.9],
                        '香港': [114.1466, 22.2701, 46147.4, 24614.3, 24590.5, 24395.4, 406.2, 171.1, 5021.7, 1793.3, 580.2, 95352.2],
                        '澳门': [113.5495, 22.1918, 43464.3, 24935.8, 22812.1, 23987.3, 2519.4, 1110.3, 2692.8, 889.1, 704.1, 91212.2]
                    };
                    let data = [{
                        name: "新疆",
                        value: [12, 23, 12]
                    },
                    {
                        name: "湖北",
                        value: [12, 1, 12]
                    },

                    {
                        name: "重庆",
                        value: [12, 1, 12]
                    },
                    {
                        name: "浙江",
                        value: [12, 1, 12]
                    },
                    {
                        name: "台湾",
                        value: [12, 1, 12]
                    },
                    {
                        name: "湖南",
                        value: [12, 1, 12]
                    },
                    {
                        name: "北京",
                        value: [12, 1, 12]
                    },
                    {
                        name: "浙江",
                        value: [12, 1, 12]
                    },
                    {
                        name: "四川",
                        value: [12, 1, 12]
                    },
                    {
                        name: "云南",
                        value: [12, 1, 12]
                    },
                    {
                        name: "青海",
                        value: [12, 1, 12]
                    },
                    {
                        name: "西藏",
                        value: [12, 1, 12]
                    },
                    {
                        name: "山东",
                        value: [12, 1, 12]
                    },
                    ];
                    data.push(
                        {
                            name: "广东",
                            value: [0, 0, 0]
                        }
                    )
                    let lineData = [];
                    data.forEach(e => {
                        let list = [], posistion = geoCoordMap[e.name];
                        list = posistion.slice(0, 2).concat(e.value);
                        e.value = list;
                        lineData.push({
                            fromName: "广东",
                            toName: e.name,
                            value: e.value,
                            coords: [
                                geoCoordMap["广东"],
                                posistion.slice(0, 2)
                            ]
                        })
                    })
                    chart.setOption({
                        backgroundColor: 'rgba(0, 0, 0, 0)',
                        tooltip: {
                            trigger: 'item',
                            backgroundColor: 'rgba(166, 200, 76, 0.82)',
                            borderColor: '#FFFFCC',
                            showDelay: 0,
                            hideDelay: 0,
                            enterable: true,
                            transitionDuration: 0,
                            extraCssText: 'z-index:100',
                            formatter: function (params, ticket, callback) {
                                //根据业务自己拓展要显示的内容
                                if (params.seriesType == "lines") {
                                    return params.data.fromName + ' > ' + params.data.toName
                                } else {
                                    return ""
                                }
                            }
                        },
                        geo: {
                            map: 'china',
                            aspectScale: 0.85,
                            layoutCenter: ["50%", "50%"], //地图位置
                            layoutSize: '100%',
                            itemStyle: {
                                normal: {
                                    shadowColor: 'rgba(11,192,251,0.8)',
                                    shadowOffsetX: 0,
                                    shadowOffsetY: 15,
                                    opacity: 0.5,
                                },
                                emphasis: {
                                    areaColor: 'rgba(9,231,249,0.5)',
                                }
                            },
                            regions: [{
                                name: '南海诸岛',
                                itemStyle: {
                                    areaColor: 'rgba(0, 10, 52, 1)',
                                    borderColor: 'rgba(0, 10, 52, 1)',
                                    normal: {
                                        opacity: 0,
                                        label: {
                                            show: false,
                                            color: "#009cc9",
                                        }
                                    },
                                },
                                label: {
                                    show: false,
                                    color: '#FFFFFF',
                                    fontSize: 12,
                                },
                            }],
                        },
                        series: [
                            // 常规地图
                            {
                                type: 'map',
                                mapType: 'china',
                                aspectScale: 0.85,
                                layoutCenter: ["50%", "50%"], //地图位置
                                layoutSize: '100%',
                                zoom: 1, //当前视角的缩放比例
                                // roam: true, //是否开启平游或缩放
                                scaleLimit: { //滚轮缩放的极限控制
                                    min: 1,
                                    max: 2
                                },
                                itemStyle: {
                                    normal: {
                                        areaColor: 'rgba(5,135,177,0.6)',
                                        borderColor: '#1cccff',
                                        borderWidth: 1,//隐藏省界线
                                        borderColor: "#3FBCCE",
                                        shadowColor: 'rgba(56,192,255,0.3)',
                                        shadowBlur: 50

                                    },
                                    emphasis: {
                                        areaColor: 'rgba(5,216,252,0.5)',
                                        label: {
                                            color: "#fff"
                                        }
                                    }
                                },
                            },
                            { //首都星图标
                                name: 'gd',
                                type: 'scatter',

                                coordinateSystem: 'geo',
                                data: [{
                                    name: '首都',
                                    value: [113.14, 23.08],

                                },],
                                symbol: iconRQ, //气泡
                                symbolSize: 20,
                                showAllSymbol: true,
                                label: {
                                    normal: {
                                        show: false,

                                    },
                                    emphasis: {
                                        show: false
                                    }
                                },
                            },
                            // 区域散点图
                            {
                                type: 'effectScatter',
                                coordinateSystem: 'geo',
                                zlevel: 2,
                                symbolSize: 2,
                                rippleEffect: { //坐标点动画
                                    period: 0,
                                    scale: 0,
                                    brushType: 'fill'
                                },
                                label: {
                                    normal: {
                                        show: true,
                                        position: 'right',
                                        formatter: '{b}',
                                        color: '#b3e2f2',
                                        fontSize: 12
                                    }
                                },
                                data: data,
                            },
                            // 线 和 点
                            {
                                type: 'lines',
                                zlevel: 1, //设置这个才会有轨迹线的小尾巴

                                effect: {
                                    show: true,
                                    period: 3,
                                    trailLength: 0.1,
                                    color: '#fff', //流动点颜色
                                    symbol: 'arrow',
                                    symbolSize: 6
                                },
                                lineStyle: {
                                    type: "dotted",
                                    normal: {
                                        color: '#fff', //线条颜色
                                        width: 1, //线条宽度
                                        opacity: 0.1, //尾迹线条透明度
                                        curveness: curveness //尾迹线条曲直度
                                    }
                                },
                                data: lineData
                            },
                        ]
                    });
                },
                gauge() {
                    var chartDom = document.getElementById('gauge');
                    var myChart = echarts.init(chartDom);
                    var option;
                    option = {
                        series: [
                            {
                                type: 'gauge',
                                progress: {
                                    show: true,
                                    width: 10,
                                    itemStyle: {
                                        color: '#1cd9ff'
                                    }
                                },
                                axisLine: {
                                    lineStyle: {
                                        width: 10,
                                        itemStyle: {
                                            color: '#1cd9ff'
                                        }
                                    }
                                },
                                axisTick: {
                                    show: false
                                },
                                splitLine: {
                                    length: 10,
                                    lineStyle: {
                                        width: 0,
                                        color: '#1cd9ff'
                                    }
                                },
                                axisLabel: {
                                    distance: 2,
                                    color: '#1cd9ff',
                                    fontSize: 12
                                },
                                anchor: {
                                    show: true,
                                    showAbove: true,
                                    size: 12,
                                    itemStyle: {
                                        borderWidth: 10
                                    }
                                },
                                title: {
                                    show: false
                                },
                                detail: {
                                    valueAnimation: true,
                                    fontSize: 24,
                                    offsetCenter: [0, '80%'],
                                    textStyle: {
                                        color: '#1cd9ff'
                                    },
                                },
                                data: [
                                    {
                                        value: 86.9,
                                        detail: {
                                            formatter: '{value}%', // 使用 formatter 函数添加百分号
                                        },
                                        pointer: {
                                            show: true, //是否显示指针
                                            itemStyle: {
                                                color: '#1cd9ff'
                                            }
                                        },

                                    }
                                ]
                            }
                        ]
                    };
                    option && myChart.setOption(option);
                },
                snnualSalesProduct() {
                    var chartDom = document.getElementById('snnualSalesProduct');
                    var myChart = echarts.init(chartDom);
                    var option;
                    option = {
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            top: '0%',
                            containLabel: true
                        },
                        xAxis: {
                            type: 'value',
                            boundaryGap: [0, 0.01],
                            axisLabel: {
                                show: false // 将刻度标签设置为不显示
                            },
                            axisTick: {
                                alignWithLabel: true
                            },
                            show: false, // 隐藏x轴线
                            axisTick: {
                                show: false // 隐藏刻度线
                            }
                        },
                        yAxis: {
                            type: 'category',
                            itemStyle: {
                                color: '#fff'
                            },
                            axisLabel: {
                                color: '#FFF' // 将 y 轴的文字颜色设置为白色
                            },
                            data: ['CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF']
                        },
                        series: [
                            {
                                name: '2011',
                                type: 'bar',
                                label: {
                                    show: true, // 显示标签
                                    position: 'right',// 标签位置在柱状图顶部
                                    color: '#fff'
                                },
                                itemStyle: {
                                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                                        offset: 0,
                                        color: '#403812' // 渐变色起始颜色-
                                    }, {
                                        offset: 1,
                                        color: '#eab502' // 渐变色终止颜色
                                    }]),
                                    borderRadius: [0, 10, 10, 0], // 设置柱子的圆角，依次为左上、右上、右下、左下
                                },
                                data: [1820, 2348, 2904, 10497, 13174, 23023, 33023, 43023, 53023, 63023]
                            },

                        ]
                    };
                    option && myChart.setOption(option);
                },
                snnualSalesProduct1() {
                    var chartDom = document.getElementById('snnualSalesProduct1');
                    var myChart = echarts.init(chartDom);
                    var option;
                    option = {
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {
                                type: 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            top: '0%',
                            containLabel: true
                        },
                        xAxis: {
                            type: 'value',
                            boundaryGap: [0, 0.01],
                            axisLabel: {
                                show: false // 将刻度标签设置为不显示
                            },
                            axisTick: {
                                alignWithLabel: true
                            },
                            show: false, // 隐藏x轴线
                            axisTick: {
                                show: false // 隐藏刻度线
                            }
                        },
                        yAxis: {
                            type: 'category',
                            itemStyle: {
                                color: '#fff'
                            },
                            axisLabel: {
                                color: '#FFF' // 将 y 轴的文字颜色设置为白色
                            },
                            data: ['CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF', 'CL00428-wWEIF']
                        },
                        series: [
                            {
                                name: '2011',
                                type: 'bar',
                                label: {
                                    show: true, // 显示标签
                                    position: 'right',// 标签位置在柱状图顶部
                                    color: '#fff'
                                },
                                itemStyle: {
                                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                                        offset: 0,
                                        color: '#403812' // 渐变色起始颜色-
                                    }, {
                                        offset: 1,
                                        color: '#00eea0' // 渐变色终止颜色
                                    }]),
                                    borderRadius: [0, 10, 10, 0], // 设置柱子的圆角，依次为左上、右上、右下、左下
                                },
                                data: [1820, 2348, 2904, 10497, 13174, 23023, 33023, 43023, 53023, 63023]
                            },

                        ]
                    };
                    option && myChart.setOption(option);
                },
                throttle(fn, delay) {
                    var n = null; return function () { var t = this, r = arguments; clearTimeout(n), n = setTimeout(function () { fn.apply(t, r) }, delay) }
                },
                setScale() {
                    const t = this.$refs["screen-wrap"], e = 1920, o = 1080, d = parseFloat((e / o).toFixed(5)), a = parseFloat((window.innerWidth / window.innerHeight).toFixed(5)); if (a > d) { const r = (window.innerHeight / o).toFixed(5); t.style.transform = `scale(${r},${r}) translate(-50%,-50%)` } else { const r = (window.innerWidth / e).toFixed(5); t.style.transform = `scale(${r},${r}) translate(-50%,-50%)` }
                },
                sendRequest() {
                    axios.post('http://120.196.185.227:7576/api/apiReport/salesDelivery/salesDeliveryReport')
                        .then(response => {
                            // 请求成功的处理逻辑
                            console.log(response.data);
                        })
                        .catch(error => {
                            // 请求失败的处理逻辑
                            console.log(error);
                        });
                }
            },
        });
    </script>
</body>

</html>